import request from '@/utils/request'

// 查询烫金分切列表
export function listCutting(query) {
  return request({
    url: '/mes/fb/cutting/list',
    method: 'get',
    params: query
  })
}

// 查询烫金分切详细
export function getCutting(recordId) {
  return request({
    url: '/mes/fb/cutting/' + recordId,
    method: 'get'
  })
}

// 新增烫金分切
export function addCutting(data) {
  return request({
    url: '/mes/fb/cutting',
    method: 'post',
    data: data
  })
}

// 修改烫金分切
export function updateCutting(data) {
  return request({
    url: '/mes/fb/cutting',
    method: 'put',
    data: data
  })
}

// 删除烫金分切
export function delCutting(recordId) {
  return request({
    url: '/mes/fb/cutting/' + recordId,
    method: 'delete'
  })
}
